//
//  MailComposerDelegate.h
//  EmailExtensionIOS
//
//  Based on the example by Piotr Kościerzyński, http://flashsimulations.com/2011/11/30/ios-native-extension-for-adobe-air-in-app-mail-composer/

#import <UIKit/UIKit.h>
#import <MessageUI/MFMailComposeViewController.h>
#import "FlashRuntimeExtensions.h"


@interface MailComposerDelegate : UIViewController<MFMailComposeViewControllerDelegate>
{
    FREContext context;
}


-( void ) sendEmail : ( NSString * ) subject 
       toRecipients : ( NSString * ) toRecipients 
       ccRecipients : ( NSString * ) ccRecipients 
      bccRecipients : ( NSString * ) bccRecipients 
        messageBody : ( NSString * ) messageBody 
            useHtml : ( Boolean )    useHtml
    attachmentsData : ( NSString * ) attachmentsData;

-( void ) setContext : ( FREContext ) ctx;

@end
